package com.jubaopen.bean;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Customer {

	private int id;
	private int userId;
	private String customerId;
	private int consumeCount;
	private double consumeSum;
	private double consumeAvg;
	private Date gmtTime;

	public Customer() {
	
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	public int getConsumeCount() {
		return consumeCount;
	}

	public void setConsumeCount(int consumeCount) {
		this.consumeCount = consumeCount;
	}

	public double getConsumeSum() {
		return consumeSum;
	}

	public void setConsumeSum(double consumeSum) {
		this.consumeSum = consumeSum;
	}

	public double getConsumeAvg() {
		return consumeAvg;
	}

	public void setConsumeAvg(double consumeAvg) {
		this.consumeAvg = consumeAvg;
	}

	public String getGmtTime() {
		if (gmtTime!= null && !"".equals(gmtTime)) {
			DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
			return df.format(gmtTime);
		} else {
			return "";
		}
	}

	public void setGmtTime(Date gmtTime) {
		this.gmtTime = gmtTime;
	}
}
